﻿<!DOCTYPE html>
<html lang="fr">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <meta charset="utf-8" />
    <title>@Page.Title - Ma page Web ASP.NET</title>
    <link href="~/Content/themes/ui-lightness/jquery-ui-1.10.4.custom.min.css" rel="stylesheet" type="text/css" />
    <link href="~/Content/Site.css" rel="stylesheet" type="text/css" />
    <link href="~/favicon.ico" rel="shortcut icon" type="image/x-icon" />
    <script src="~/Scripts/jquery-1.11.0.min.js"></script>
    <script src="~/Scripts/jquery-ui-1.10.4.custom.min.js"></script>
    <script src="~/Scripts/modernizr-2.5.3.js"></script>
    <script src="~/Scripts/jquery.validate.min.js"></script>
    <script src="~/Scripts/jquery.validate.unobtrusive.min.js"></script>
    <meta name="viewport" content="width=device-width" />
    <script type="text/javascript">
        $(document).ready(function () {
            $("#dialog-register").dialog({
                autoOpen: false,
                resizable: false,
                height: 410,
                width: 350,
                show: { effect: 'drop', direction: "up" },
                modal: true,
                draggable: false
                //                open: function (event, ui) {
                //                    $(".ui-dialog-titlebar-close").hide();
                //                }
            });
        });


        function openPopUp() {
            $("#dialog-register").dialog("open");
        }

    </script>
</head>
<body>
    <div id="body">
        <div id="dialog-register">
            @if (!WebSecurity.IsAuthenticated)
            {
                @RenderPage("~/Account/Popupregister.cshtml", null)
            }
        </div>
        <div class="total">
            <div class="menu-left">
                <div id="cssmenu">
                    <ul id="menu">
                        <li><a href="~/"><span>Accueil</span></a></li>
                        @if (WebSecurity.IsAuthenticated)
                        {
                            <li><a href="~/Profile"><span>Profile</span></a></li>
                            <li><a href="~/Myaccount"><span>My account</span></a></li>
                            <li><a href="~/SharedAccounts"><span>Shared accounts</span></a></li>
                            <form id="logoutForm" action="~/Account/Logout" method="post">
                            @AntiForgery.GetHtml()
                            <li><a href="javascript:document.getElementById('logoutForm').submit()"><span>Déconnexion</span></a></li>
                            </form>
                        }
                        else
                        {
                            <li><a onclick="openPopUp()"><span>Inscription</span></a></li>
                            <li><a href="~/Account/Login"><span>Connection</span></a></li>
                        }
                    </ul>
                </div>
            </div>
            <div class="page">
                @RenderBody()
            </div>
        </div>
    </div>
    @RenderSection("Scripts", required: false)

</body>
</html>
